<!DOCTYPE html>
<html>
<head>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>

<div class="container-fluid">
    <div class="dolphin-row main page-content" style="margin-left: 10px;">
        <div class="page-header">
            <h5 class="content-title"><%= __('repair.management') %></h5>
            <!--<div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-info add_new"><i class="fui-plus-circle icon-menu"></i>
                            <span>新建报修</span>
                        </button>
                    </li>
                </ul>
            </div>-->
        </div>
        <div class="dolphin-col-24">
            <div class="queryCondition">
                <form class="query-form">
                    <div class="row">
                        <div class="col-md-3">
                            <label><%= __('framework.equipmentCode') %>：</label>
                            <input type="text" name="deviceCode_like" placeholder="<%= __('service.ableFuzzyQuery') %>">
                        </div>
                        <div class="col-md-5">
                            <label style="float: left;"><%= __('service.timeRepairCall') %>：</label>
                            <ul class="list-inline" style="float: left;margin-bottom: auto;">
                                <li>
                                    <div class="input-group date dolphin_date_picker" style="width: 160px;">
                                        <input type="text" class="form-control" name="_startDate" id="startDate">
                                        <span class="input-group-addon">
                                        <i class="glyphicon glyphicon-th"></i>
                                    </span>
                                    </div>
                                </li>
                                <li>
                                    <div class="input-group date dolphin_date_picker" style="width: 160px;">
                                        <input type="text" class="form-control" name="_endDate" id="endDate">
                                        <span class="input-group-addon">
                                        <i class="glyphicon glyphicon-th"></i>
                                    </span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="col-md-2">
                            <button type="button" class="btn btn-sm btn-inverse btn-query"><%= __('account.search') %></button>
                        </div>
                    </div>
                </form>
            </div>


            <div class="dolphin-col-24 main" id="myContent">
                <div class="panel panel-primary box">
                    <div class="panel-heading box-title">
                        <h3 class="panel-title">
                            <i class="fa fa-table fa-lg" aria-hidden="true"></i>
                            <%= __('repair.repairList') %>
                        </h3>
                        <div class="actions">
                            <a class="btn btn-mini content-refresh" href="#">
                                <i class="fa fa-refresh"></i>
                            </a>
                        </div>
                    </div>
                    <div id="repairList" class="box-content"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="dataModal" tabindex="-1" role="dialog" aria-labelledby="dataModalLabel">
    <div class="modal-dialog" role="document" style="left: 20%;top: 0;width: 60%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="dataModalLabel"><%= __('repair.management') %></h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal edit-form">
                    <input type="hidden" class="form-control" name="id">
                    <div class="row">
                        <div class="col-md-7">
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('service.equipmentCall') %></label>
                                <div class="col-md-8">
                                    <input class="form-control" name="deviceName" type="text" disabled
                                           dol-validate="required">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('service.eventCode') %></label>
                                <div class="col-md-8">
                                    <input class="form-control" name="code" type="text" disabled
                                           dol-validate="required">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('framework.contactPerson') %></label>
                                <div class="col-md-8">
                                    <input class="form-control" name="contactName" disabled type="text"
                                           dol-validate="required">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('framework.cellphoneNumber') %></label>
                                <div class="col-md-8">
                                    <input class="form-control" name="contactPhone" disabled type="text"
                                           dol-validate="required">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('repair.address') %></label>
                                <div class="col-md-8">
                                    <input class="form-control" name="address" type="text" disabled
                                           dol-validate="required">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('service.repairCallDiscription') %></label>
                                <div class="col-md-8">
                                    <textarea name="remark" class="form-control" disabled
                                              style="height: 100%;"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-md-4 control-label"><%= __('repair.result') %></label>
                                <div class="col-md-8">
                                    <textarea name="result" class="form-control" style="height: 100%;"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary modelSave"><%= __('account.save') %></button>
                <button type="button" class="btn btn-default" data-dismiss="modal"><%= __('account.delete') %></button>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
